#ifndef _GDAL_MONGO_
#define _GDAL_MONGO_


#include <string>
#include "boost\algorithm\string.hpp"
#include <iostream>
#include <math.h>
#include <cstdlib>

using namespace std;

#include <WinSock2.h>
#include "mongo\client\dbclient.h"
#include "mongo\client\gridfs.h"
#include "mongo\bson\bson.h"

using namespace mongo;


struct GDALMongoConn
{
	string host;
	string db;
	string user;
	string pwd;
	DBClientConnection* conn;
	bool isConned;
	bool isAuthed;

};



class GDALMongo
{
public:
		static GDALMongo* GetInstance();
		GDALMongoConn* GetMongoConn(const string, const string, const string, const string);
private:
	GDALMongo();
	~GDALMongo();

private:
	vector<GDALMongoConn*> conns;
};


#endif // !_GDAL_MONGO_